package com.thoughtworks.wechatmoments.utils;

import android.support.annotation.StringRes;
import android.widget.Toast;

import com.thoughtworks.wechatmoments.base.BaseApplication;

/**
 * desc   : Toast工具类 (小米个别手机只支持application的上下文)
 * author : guowenlong
 * Email  : guowenlong20000@gmail.com
 * time   : 2018年12月04日16 : 07
 */
public class ToastUtils {

    public static void show(String content) {
        Toast.makeText(BaseApplication.getInstance(), content, Toast.LENGTH_SHORT).show();
    }

    public static void show(String content, int timeType) {
        Toast.makeText(BaseApplication.getInstance(), content, timeType).show();
    }

    public static void show(@StringRes int content, int timeType) {
        Toast.makeText(BaseApplication.getInstance(), content, timeType).show();
    }
}